package com.hzw.saas.api.schedule.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
public class UserMeetingClashQuery {

    @NotNull(message = "开始时间不可为空")
    @ApiModelProperty(value = "开始时间", required = true, position = 1)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @NotNull(message = "结束时间不可为空")
    @ApiModelProperty(value = "结束时间", required = true, position = 2)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "与会用户ids集合", position = 3)
    private List<String> userIds;
}
